package org.millioncall.yueyoga.admin.model.base;

import java.util.List;

import org.millioncall.yueyoga.admin.model.Authority;

public abstract class BaseResource implements java.io.Serializable {
	private static final long serialVersionUID = 495807615943380444L;
	private Integer id;
	private String name;
	private Integer type;
	private String url;
	private Boolean enabled;
	private String description;
	private List<Authority> authorities;

	public BaseResource() {
	}

	public BaseResource(String name, Integer type, Short priority, String url,
			Boolean enabled) {
		this.name = name;
		this.type = type;
		this.url = url;
		this.enabled = enabled;
	}

	public BaseResource(String name, Integer type, Short priority, String url,
			Boolean enabled, String description) {
		this.name = name;
		this.type = type;
		this.url = url;
		this.enabled = enabled;
		this.description = description;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Boolean getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<Authority> getAuthorities() {
		return authorities;
	}

	public void setAuthorities(List<Authority> authorities) {
		this.authorities = authorities;
	}
}